package com.sg.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author xxx
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("baab25a4375c11ed87d500163e1b729d")
public class ManagedDept extends BaseEntity {
    private static final long serialVersionUID = 1L;


    /**
     * 管理的部门ID
     */
    @TableId(value = "managed_dep_id", type = IdType.UUID)
    @NotNull(message = "managedDepId不能为空")
    private String managedDepId;
    /**
     * 组织ID
     */
    @TableField(value = "organization_id")
    @NotNull(message = "组织ID不能为空")
    @ApiModelProperty("组织ID")
    private String organizationId;
    /**
     * 部门ID
     */
    @TableField(value = "dept_id")
    @NotNull(message = "部门ID不能为空")
    @ApiModelProperty("部门ID")
    private String deptId;
    /**
     * 角色人员ID
     */
    @TableField(value = "role_member_id")
    @NotNull(message = "角色人员ID不能为空")
    @ApiModelProperty("角色人员ID")
    private String roleMemberId;
    /**
     * 身份人员ID
     */
    @TableField(value = "original_role_member_id")
    @NotNull(message = "身份人员ID不能为空")
    @ApiModelProperty("身份人员ID")
    private String originalRoleMemberId;
    /**
     * 创建于空间ID
     */
    @TableField(value = "space_id")
    @NotNull(message = "创建于空间ID不能为空")
    @ApiModelProperty("创建于空间ID")
    private String spaceId;
    /**
     * 创建于联盟应用ID
     */
    @TableField(value = "app_id")
    @NotNull(message = "创建于联盟应用ID不能为空")
    @ApiModelProperty("创建于联盟应用ID")
    private String appId;
    /**
     * 操作人就职记录ID
     */
    @TableField(value = "operation_induction_id")
    @NotNull(message = "操作人就职记录ID不能为空")
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;
    /**
     * 创建人就职记录ID
     */
    @TableField(value = "create_induction_id")
    @NotNull(message = "创建人就职记录ID不能为空")
    @ApiModelProperty("创建人就职记录ID")
    private String createInductionId;
    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    @NotNull(message = "操作时间不能为空")
    @ApiModelProperty("操作时间")
    private Date operateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @NotNull(message = "创建时间不能为空")
    @ApiModelProperty("创建时间")
    private Date createTime;
}
